<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="images/favicon.png" type="image/png">

    <title>中国梦想游网后台登录</title>

    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/font-awesome.min.css?v=4.3.0" rel="stylesheet">
    <link href="css/animate.min.css" rel="stylesheet">
    <link href="css/style.min.css?v=3.3.0" rel="stylesheet">
    <link href="css/login.min.css" rel="stylesheet">
    
</head>
<script type="text/javascript" src="/back/js/jquery-2.1.3.min.js"></script>
<script type="text/javascript">
	$(function(){
		$("#name").blur(function(){
			var name=$("#name").val();			
			var pwd=$("#pwd").val();
			if(name==""){
				alert("账号不能为空");
				$("#butn").attr("disabled", true);
			} else{
				$("#butn").attr("disabled", false);
			}
		});
		$("#pwd").blur(function(){
					
			var pwd=$("#pwd").val();
		 if(pwd!=""){
				
				$("#butn").attr("disabled", false);
			}
		}); 
		
	});
	
	function yanzheng(){
		var name=$(this).prev().prev().val();
		var pass=$(this).prev().val();
		
		if(name==""){
			alert("用户名不能为空");
			$("#butn").attr("disabled", true);
			return false;
		}
		
		if(pass==""){
			alert("密码不能为空");
			$("#butn").attr("disabled", true);
			return false;
		}
	
		$("#butn").attr("disabled", false);
		return true;
	
	}
	
	function tishi(oop){
		if(oop!=""){
			if(oop=='1'){
				alert("这个账号被冻结了")
			}
			if(oop=='2'){
				alert("账号或密码错误，请重新登录")
			}
		}
	}
</script>
<body class="signin" onload="tishi(${param.flag})">
    <div class="signinpanel">
        <div class="row">
            <div class="col-sm-7">
                <div class="signin-info">
                    <div class="logopanel m-b">
                       
                    </div>
                    <div class="m-b"></div>
                    <h2>欢迎访问 <strong>中国梦想游网后台</strong></h2>
                    <ul class="m-b">
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> Convenient -便捷（不让客户做重复的事）</li><br>
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> Thorough -周全（为客户做一切可能做到的事）</li><br>
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> Reliable -可靠（不让客户担一点心）</li><br>
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> Intimate -亲切（让客户听到我们的微笑）</li><br>
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> Professional -专业（让客户感觉我们个个是专家）</li><br>
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> Sincere -真诚（全心全意地为客户着想）</li>
                    </ul>
                    
                </div>
            </div>
            <div class="col-sm-5">
                <form method="post" action="${pageContext.request.contextPath}/BackLoginServlet" onsubmit="return yanzheng() " >
                    <h4 class="no-margins">登录：</h4>
                    <p class="m-t-md">登录中国梦想游网后台</p>
                    <input type="text" name="name" id="name" class="form-control uname" style="background-color: lightblue;" placeholder="用户名" />
                    <input type="password" name="pwd" id="pwd" class="form-control pword m-b" style="background-color: lightblue;" placeholder="密码" />
                    
                    <input type="submit" class="btn btn-success btn-block" id="butn" value="登录">
                </form>
            </div>
        </div>
        <div class="signup-footer">
            <div class="pull-left">
                &copy; 2017 All Rights Reserved. 众创中心项目3组
            </div>
        </div>
    </div>
</body>

</html>